home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 109
/
Vol 109.iso
/
games
/
punching.swf
/
scripts
/
DefineSprite_22
/
frame_2
/
DoAction.as
Wrap
Text File
|
2008-11-12
|
812b
|
40 lines
if(eval("../:start") == "1")
{
set("../:goneTime",eval("../:goneTime") + "83");
nowTime = "60000" - eval("../:goneTime");
if("0" >= nowTime)
{
nowTime = "0";
tellTarget("../")
{
start = "0";
}
}
secs = int(nowTime / "1000");
mins = int(secs / "60");
if("0" < mins)
{
secs -= mins * "60";
}
timeTemp = "0" add mins add ":";
if(secs < "10")
{
timeTemp = timeTemp add "0" add secs;
}
else
{
timeTemp = timeTemp add secs;
}
if(mins < "1")
{
millis = int((nowTime - secs * "1000") / "10");
}
else
{
millis = int((nowTime - (secs * "1000" + mins * "60000")) / "10");
}
timeTemp = timeTemp add ":" add millis;
time = timeTemp;
}
prevFrame();